package org.xm.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.xm.model.Item;
import org.xm.model.Order;
import org.xm.model.Warehouse;

import java.util.List;

@Mapper
public interface WarehouseMapper {

    List<Warehouse> getAllWarehouses();

    List<Item> getItemByWarehouseId(Long warehouseId);

    List<Order> getAllOrders();

    Long addItem(Item item);

    void addOrder(Order order);

    void addWarehouse(Warehouse warehouse);

    void addInventoryAmount(int inventoryAmount, Long warehouseId);
}
